<script setup lang="ts">
import { RouterView } from 'vue-router'
</script>

<template>
  <router-view v-slot="{ Component }">
    <transition name="slideSwitch">
      <keep-alive>
        <component :is="Component" />
      </keep-alive>
    </transition>
  </router-view>
</template>

<style scoped lang="scss">
.slideSwitch-enter-active{
  animation: fadeInRight 1s 1;
}
.slideSwitch-leave-active {
  animation: fadeOutLeft 0.7s 1;
}
</style>
